local filename = "freelancer/bugreport.txt"
function bugreport( ply, txt )
	if string.find( txt, "/bugreport" ) then
		local filecontend = ""
		if 	(file.Exists(filename)) then
			filecontend = file.Read(filename)
		end
		file.Write(filename,filecontend .. "\n" .. ply:GetName() .. " ".. ply:SteamID( ) .. " " .. txt)
		ply:PrintMessage(HUD_PRINTCENTER, "Reported, thankx" )
	end   
	return txt
end
hook.Add( "PlayerSay", "bugreport", bugreport )


function advertbugreport()
	local plys = player.GetAll( )
	for _,ply in pairs(plys) do 
		ply:PrintMessage(HUD_PRINTTALK, "Report bugs with /bugreport description , SteamID will be saved, for possible further questions" )
	end
end
timer.Create( "advertbugreport", 120, 0, advertbugreport )